﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

namespace FwProject.Migrations
{
    public partial class Add_FactoryinfoId_To_RestaurantTypeNumberInfo : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AddColumn<Guid>(
                name: "FactoryinfoId",
                table: "StockCheckInfo",
                nullable: true);

            migrationBuilder.AddColumn<int>(
                name: "StockCheckStatus",
                table: "StockCheckInfo",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<Guid>(
                name: "FactoryinfoId",
                table: "RestaurantTypenNumberInfo",
                nullable: true);

            migrationBuilder.AddColumn<decimal>(
                name: "TypeNumberPrice",
                table: "DistributionInfoDetails",
                nullable: false,
                defaultValue: 0m);
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "FactoryinfoId",
                table: "StockCheckInfo");

            migrationBuilder.DropColumn(
                name: "StockCheckStatus",
                table: "StockCheckInfo");

            migrationBuilder.DropColumn(
                name: "FactoryinfoId",
                table: "RestaurantTypenNumberInfo");

            migrationBuilder.DropColumn(
                name: "TypeNumberPrice",
                table: "DistributionInfoDetails");
        }
    }
}
